package com.huitone.gddw.service.dto.business;

import java.util.Date;

import com.huitone.gddw.common.excel.ColToProperty;
import com.huitone.gddw.common.excel.TabCol;

/**
 * 文件导入明细 DTO 对象  门户短信文件
 * @author wuluodan
 *
 */
public class InputWebSmDTO {

	@ColToProperty
	@TabCol(Index = 1, title = "序号", width = "30")
	private Integer seq;
	
	@ColToProperty
	@TabCol(Index = 2, title = "导入日期", width = "65")
	private Date uptimeDate;
	
	@ColToProperty
	@TabCol(Index = 3, title = "导入文件名", width = "120")
	private String fileName;
	
	@ColToProperty
	@TabCol(Index = 4, title = "记录行内容", width = "120")
	private String lineContent;
	
	private String status;
	
	@ColToProperty
	@TabCol(Index = 5, title = "导入状态", width = "50")
    private String statusStr;
	
	@ColToProperty
	@TabCol(Index = 6, title = "发送结果", width = "50")
	private String sendResult;

	public Integer getSeq() {
		return seq;
	}

	public void setSeq(Integer seq) {
		this.seq = seq;
	}

	public Date getUptimeDate() {
		return uptimeDate;
	}

	public void setUptimeDate(Date uptimeDate) {
		this.uptimeDate = uptimeDate;
	}

	public String getFileName() {
		return fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	public String getLineContent() {
		return lineContent;
	}

	public void setLineContent(String lineContent) {
		this.lineContent = lineContent;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getStatusStr() {
		if (null == this.status)
			return "未知";
		if (this.status.equals("0"))
			return "失败";
		if (this.status.equals("1"))
			return "成功";
		return "未知";
	}

	public void setStatusStr(String statusStr) {
		this.statusStr = statusStr;
	}

	public String getSendResult() {
		return sendResult;
	}

	public void setSendResult(String sendResult) {
		this.sendResult = sendResult;
	}
	
}
